package com.szml.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.szml.entity.ProductPriceRecord;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@TableName("product_basic")
public class ProductDTO {

    /**
     * 城市黑名单
     */
    @TableField(exist = false)
    private String cityBlacklist;
    /**
     * 城市白名单
     */
    @TableField(exist = false)
    private String cityWhitelist;
    /**
     * 商品详情
     */
    @TableField(exist = false)
    private String description;
    /**
     * 兑换上限
     */
    @TableField(exist = false)
    private Integer exchangeRestrictions;
    /**
     * 商品id
     */
    @TableId("product_id")
    private Long ProductId;
    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String productName;
    /**
     * 库存
     */
    @TableField(exist = false)
    private Integer inStock;
    /**
     * 价格
     */
    @TableField(exist = false)
    private List<ProductPriceRecord> price;
    /**
     * 商品分类
     */
    @TableField("peoduct_category")
    private String productCategory;

    /**
     * 商品图片路径
     */
    @TableField("product_picture")
    private String productPicture;

    @TableField("user_id")
    private Long userId;
    /**
     * 权益类型(0:实物,1:代金券,2:虚拟)
     */
    @TableField("product_type")
    private Integer productType;

    @TableField("product_details_id")
    private Long productDetailsId;
    //外键）供应商id
    @TableField("product_supplier_id")
    private Long productSupplierId;

    @TableField("product_owner_state")
    private Integer productOwnerState;

    @TableField("product_check_state")
    private Integer productCheckState;

    @TableField("product_online_state")
    private Integer productOnlineState;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("remark")
    private String remark;

    /**
     * 文字描述
     */
    @TableField(exist = false)
    private String richText;
    /**
     * 服务保障
     */
    @TableField(exist = false)
    private String serviceGuarantee;
    /**
     * 供应商名称
     */
    @TableField(exist = false)
    private String supplier;
    /**
     * 供应商联系方式
     */
    @TableField(exist = false)
    private String tel;
    /**
     * 下线时间
     */
    @TableField(exist = false)
    private LocalDateTime timeOff;
    /**
     * 上线时间
     */
    @TableField(exist = false)
    private LocalDateTime timeOn;

}
